package net.suncapper.wcss.model.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 数据字典
 * </p>
 *
 * @author ztr
 * @since 2025-11-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("dictionary")
@ApiModel(value="Dictionary对象", description="数据字典")
public class Dictionary implements Serializable {

    private static final long serialVersionUID = 1L;

        @ApiModelProperty(value = "ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

        @ApiModelProperty(value = "父ID")
    @TableField("parent_id")
    private Integer parentId;

        @ApiModelProperty(value = "字典类型")
    @TableField("TYPE")
    private String type;

        @ApiModelProperty(value = "显示名")
    @TableField("item_name")
    private String itemName;

        @ApiModelProperty(value = "存储值")
    @TableField("item_value")
    private String itemValue;

        @ApiModelProperty(value = "描述说明")
    @TableField("description")
    private String description;

        @ApiModelProperty(value = "扩展JSON")
    @TableField("extdata")
    private String extdata;

        @ApiModelProperty(value = "排序号")
    @TableField("sort_id")
    private Integer sortId;

        @ApiModelProperty(value = "是否可改")
    @TableField("is_editable")
    private Boolean editable;

        @ApiModelProperty(value = "是否可删")
    @TableField("is_deletable")
    private Boolean deletable;

        @ApiModelProperty(value = "删除标记")
    @TableField("is_deleted")
        @TableLogic
    private Boolean deleted;

        @ApiModelProperty(value = "创建时间")
    @TableField("gmt_created")
    private LocalDateTime gmtCreated;

        @ApiModelProperty(value = "更新时间")
    @TableField("gmt_modified")
    private LocalDateTime gmtModified;


}
